// pages/addlist/index.js
Page({
  data: {
    isPop: false
  },

  showPop () {
    this.setData ({
      isPop: true
    })
  },
  closePop () {
    this.setData ({
      isPop: false
    })
  },

  // 删除信息
  delAdd (e) {
    wx.showModal({
      title: '是否删除该条消息',
      showCancel: true,
      cancelText: '取消',
      cancelColor: '#000000',
      confirmText: '确定',
      confirmColor: '#3CC51F',
      success: (result) => {
        if(result.confirm){
          const { animalid } = e.currentTarget.dataset   
          
        }
      }
    });
    
  }
})